
#include "fbpool.h"

int main(int argc, char *argv[])
{
    int size = 0;
    int i,j;
    open_video();

    init_device();

    printf("before start capture\n");
    start_capturing();

    if (drm_init(2, 32, 1920, 1080) < 0) {
        fprintf(stderr, "init drm failed\n");
    return -1;
    }

    while (1)
    {
        read_frame();
    }

    drm_deinit();


    return 0;
}


